package com.changgou.user.service;

import com.changgou.goods.pojo.Spu;
import com.changgou.user.pojo.Collect;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author Cloudy
 * @date 2020/5/29 15:31
 */
public interface CollectService {
    PageInfo<Collect> findPage(Collect collect, int page, int size);

    List<Collect> findList(Collect collect);

    void delete(String id);

    void add(Collect collect);

    Collect findById(String id);

    List<Collect> findAll();

    void update(Collect collect);

    PageInfo<Collect> findPage(int page, int size);

    List<Spu> findByUsername(Collect collect);
}
